package String.exercise;

public class Demo3 {
    public static void main(String[] args) {
        String s="abc";
        String s1="ab";
        String s2="ab"+"c";
        String s3=s1+"c";
        System.out.println(s==s2);//true
        System.out.println(s==s3);//false;

    }
}
